www.gusucode.com > RQCMS PHP文章管理系统 v2.3PHP源码程序 > RQCMS PHP文章管理系统 v2.3/rqcms_v2.3/rqcms_v2.3/core/manager/view/plugin.php
<?php print <<<EOT <div class="mainbody"> <table border="0" cellspacing="0" cellpadding="0" style="width:100%;"> <tr> <td valign="top" style="width:150px;"><div class="tableborder"> <div class="tableheader">插件管理</div> <div class="leftmenubody"> <div class="leftmenuitem">• <a href="{$admin_url}?file=plugin&action=list">插件列表</a></div> <div class="leftmenuitem">• <a href="{$admin_url}?file=plugin&action=install">安装插件</a></div> </div> </div><div class="tableborder"> <div class="tableheader">插件菜单</div> EOT; if(count($pluginitem)>0){ print <<<EOT <div class="leftmenubody"> EOT; foreach($pluginitem as $itemk=>$itemv){print <<<EOT <div class="leftmenuitem">• <a href="{$admin_url}?file=plugin&action=setting&plugin=$itemv">$itemk</a></div> EOT; }print <<<EOT </div> EOT; }print <<<EOT </div></td> <td valign="top" style="width:20px;"></td> <td valign="top"> <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr><td class="rightmainbody"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> EOT; if($action == 'list'){print <<<EOT <tr class="tdbheader"> <td width="20%">插件名称</td> <td width="12%" nowrap>状态</td> <td width="10%" nowrap>版本</td> <td width="6%" nowrap>作者</td> <td width="32%" nowrap>描述</td> <td width="10%" nowrap>操作</td> </tr> EOT; foreach($plugindb as $key => $plugin){print <<<EOT <tr class="tablecell"> <td>$plugin[name]</td> <td nowrap><a href="{$admin_url}?file=plugin&action=active&active=$plugin[active]&pid=$plugin[pid]"> EOT; $stats=$plugin['active']?'正常':'禁用'; print <<<EOT $stats</a></td> <td nowrap>$plugin[version]</td> <td nowrap><a href='$plugin[url]' target='_blank'>$plugin[author]</td> <td nowrap>$plugin[description]</td> <td nowrap><a href="{$admin_url}?file=plugin&action=delete&pid=$plugin[pid]">删除</a></td> </tr> EOT; } }else if($action=='install') { print <<<EOT <form action="{$admin_url}?file=plugin" method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value="upload" /> <tr class="tdbheader"> <td colspan="2">上传新插件</td> </tr> <tr class="tablecell"> <td colspan="2">请上传一个zip压缩格式的插件安装包。 <a href="http://www.rqcms.com/plugin/" target="_blank">获得更多插件»</a></td> </tr> <tbody id="attachbody"><tr class="tablecell"><td>压缩包:</td><td><input class="formfield" type="file" name="pluzip"></td></tr></tbody> <tr class="tablecell"> <td colspan="2" align="center"><input type="submit" class="formbutton" value="上传" /></td> </tr> </form> EOT; }elseif ($action == 'setting') { doAction('admin_plugin_setting_view'); }print <<<EOT <tr> <td class="tablebottom" colspan="6"></td> </tr> </table></td> </tr> </table> EOT; print <<<EOT </td> </tr> </table> </div> EOT; ?>